
/*
 * Copyright 2001-2018 the original author or authors.
 *
 * All rights are reserved to
 *
 * http://www.10jqka.com.cn
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package com.my.study.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: jinhao Wang
 * @Create time: 2020-08-08 10:44
 * @Email: wangjinhao@myhexin.com
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD})
@Documented
public @interface JobMethodHandler {
    /**
     * 定时时间
     *
     * @return
     */
    String cron();

    /**
     * 任务名称
     *
     * @return
     */
    String name();

    /**
     * 开启是否启动,默认不开启，0
     *
     * @return
     */
    String start() default "0";

}
